
//
//  OrderDetailCastCell.m
//  WGFGlobalHouses
//
//  Created by welldone on 15/5/19.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "OrderDetailCastCell.h"
#import "NearbyCellData.h"


@interface OrderDetailCastCell ()

@property (weak, nonatomic) IBOutlet UILabel *mainLab;
@property (weak, nonatomic) IBOutlet UILabel *valueLab;

@end

@implementation OrderDetailCastCell


+(instancetype) cellWithTableView:(UITableView *)tableview{

    static NSString *ID = @"OrderDetailCastCell";
    OrderDetailCastCell *cell = [tableview dequeueReusableCellWithIdentifier:ID];
    if (cell == nil)
    {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"OrderDetailCastCell" owner:nil options:nil]lastObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
    
}

+(CGFloat)getHight:(CellBaseData*)data withTableView:(UITableView*)tableView{


    return 44;
}

-(void)setData:(NearbyCellData*)data{
    
    [self.mainLab setText:data.title];
    [self.valueLab setText:data.detail];
    

}

@end
